package com.lxc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lxc.entity.Works;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


public interface WorkService extends IService<Works> {

    public Works getWorkById(Integer id);

    IPage<Works> getWorks(String name, String category,Integer currentPage,Integer pageSize);

    void updateWork(Works work);

    Works addwork(Works works, MultipartFile file) throws IOException;

    boolean deleteById(Integer id);
}